/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*                                                                  *
*        *************************************************         *
*        *©2021-2031 HT  Corporation All rights reserved *         *
*        *************************************************         *
*                                                                  *
* FileName    : demo_ffmpeg.h                                      *
*                                                                  *
* Author      : linus                                              *
*                                                                  *
* Email       : luoyaojun@haitutech.com                            *
*                                                                  *
* Date        : 2023-3-22                                          *
*                                                                  *
* Description :                                                    *
*                                                                  *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */


#ifndef __DEMO_FFMPEG_H
#define __DEMO_FFMPEG_H

#ifdef __cplusplus
extern "C"
{
#endif
typedef int (*demo_ffmpeg_frame_out)(int width, int heigh, void *frame, int len, unsigned int pts, void *user);

struct demo_ffmpeg {
	

};
int ffmpeg_play_mp4(const char *file_name, demo_ffmpeg_frame_out user_cb, void *user);
	int ffmpeg_mp4_2_h264(const char *file_name);
	int ffmpeg_play_h264(const char *file_name, demo_ffmpeg_frame_out user_cb, void *user);

#ifdef __cplusplus
}
#endif

#endif
